package Particles
{
	import nl.jorisdormans.phantom2D.cameras.Camera;
	import flash.display.Graphics;
	import nl.jorisdormans.phantom2D.particles.Particle;
	import nl.jorisdormans.phantom2D.util.DrawUtil;
	/**
	 * ...
	 * @author Sebastiaan
	 */
	public class ChopperParticle extends Particle 
	{
		public function ChopperParticle() 
		{
			
		}
		
		override public function render(graphics:Graphics, camera:Camera):void 
		{
			graphics.beginFill(DrawUtil.lerpColor(0x000000, 0xC0C0C0, Math.min(living)));
			graphics.drawCircle(position.x - camera.left, position.y - camera.top, Math.min(5, life * 50));
			graphics.endFill();
		}
		
	}

}